<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    
    String picpath = request.getContextPath() + "/pictures/";
    //String picpath = "http://localhost/pictures/";
%>
<div class="clearfix">
    <h2><a href="${pageContext.request.contextPath}/users/${user.id}/show" style="color: black;text-decoration: none;">${user.name}</a></h2>
    <a href="${user.site}">${user.site}</a>
    <div class="cool-profile-body">
    <div class="profile-comment">${user.introduction}</div>
    <ul class="list-unstyled">
        <c:forEach var="dressing" items="${user.dressings}">
            <li class="pull-left" style="padding:5px;">
                 <a href="${pageContext.request.contextPath}/dressings/${dressing.id}">
                    <img style="height:300px" src="<%=picpath%>${dressing.pictureName}" />
                </a>
            </li>
        </c:forEach>
    </ul>
    </div>
</div>

